package com.wonder.app.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wonder.app.domain.StkApply;

import java.util.Map;

public interface StkApplyService extends IService<StkApply> {
    boolean audit(JSONObject map) throws Exception;

    Map<String, Object> getStkApplyList(Map<String, Object> map);

    Map<String, Object> getStkApplyDetail(Map<String, Object> map);

    Boolean auditStkApply(String userName,Long user_id, Map<String, Object> map) throws Exception;

    Map<String, Object> commendLocation(Long user_id, Map<String, Object> map)throws Exception;

    Map<String, Object> commendLocationByItem(Long user_id, Map<String, Object> map)throws Exception;

    /**
     * 出库申请单整单关闭
     * @param map
     * @return
     * @throws Exception
     */
    boolean applyClose(JSONObject map) throws Exception;

    /**
     * 出库申请单反审核
     * @param map
     * @return
     * @throws Exception
     */
    boolean unAudit(JSONObject map) throws Exception;
}
